package cn.saltybe.analysis.service;

import cn.saltybe.analysis.entity.data.SecondHandHouse;

import java.util.List;

public interface SecondHandHouseService {
    public void createTable() throws Exception;
    public int insert(SecondHandHouse secondHandHouse) throws Exception;
    public int delete(int id) throws Exception;
    public int update(SecondHandHouse secondHandHouse) throws Exception;
    public List<SecondHandHouse> all() throws Exception;
    public List<SecondHandHouse> all(int offset) throws Exception;
    public List<SecondHandHouse> all(int offset, int limit) throws Exception;
    public SecondHandHouse get(String typeId) throws Exception;
    public SecondHandHouse get(int id) throws Exception;
    public List<SecondHandHouse> get(int[] id) throws Exception;
    public boolean has(String typeId);
    public boolean has(int id);
    public List<SecondHandHouse> query(String search, int offset, int limit) throws Exception;
    public int count(String search) throws Exception;
}
